* The GtkComboBoxText implementation of the GtkBuildable interface
* supports adding items directly using the <items> element
* and specifying <item> elements for each item. Each <item>
- * element supports the regular translation attributes "translatable",
+ * element can specify the "id" corresponding to the appended text and
+ * also supports the regular translation attributes "translatable",
* "context" and "comments".
*
* <example>
* <programlisting><![CDATA[
* <object class="GtkComboBoxText">
* <items>
- * <item translatable="yes">Factory</item>
- * <item translatable="yes">Home</item>
- * <item translatable="yes">Subway</item>
+ * <item translatable="yes" id="factory">Factory</item>
+ * <item translatable="yes" id="home">Home</item>
+ * <item translatable="yes" id="subway">Subway</item>
* </items>
* </object>
* ]]></programlisting>
{
const gchar *translated;
- /* FIXME: This will not use the domain set in the .ui file,
- * since the parser is not telling the builder about the domain.
- * However, it will work for gtk_builder_set_translation_domain() calls.
- */
translated = _gtk_builder_parser_translate (data->domain,
data->context,
data->string->str);